const { defineConfig } = require('@vue/cli-service')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,//关闭语法检查
  publicPath: './',
  // productionSourceMap: false,
  configureWebpack: {
    optimization: {
      minimizer: [
        new UglifyJsPlugin({
          uglifyOptions: {
            compress: {
              // warnings: true,
              drop_console: true, //注释console
            }
          }
        })
      ]
    }
  },
  chainWebpack: config => {
    config.plugin('html').tap(args => {
      args[0].title = '郑州商学院问卷系统';
      return args;
    })
  }
})
